package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhUserPastHistoryInsertReq;
import com.xiao.hao.req.XhUserPastHistoryQueryPageReq;
import com.xiao.hao.req.XhUserPastHistoryUpdateReq;
import com.xiao.hao.resp.XhUserPastHistoryResp;
import com.xiao.hao.entity.XhUserPastHistory;

/**
*
*
* @Description 用户既往史 类型转换
* @Author xiaohao
* @Date 2025-03-05 17:23:15
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhUserPastHistoryConvertor {

    XhUserPastHistoryConvertor INSTANCE = Mappers.getMapper(XhUserPastHistoryConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhUserPastHistory
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhUserPastHistory reqToEntity(XhUserPastHistoryInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhUserPastHistory
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhUserPastHistory reqToEntity(XhUserPastHistoryUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhUserPastHistoryResp
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhUserPastHistoryResp entityToResp(XhUserPastHistory entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhUserPastHistoryResp>
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    List<XhUserPastHistoryResp> entityListToRespList(List<XhUserPastHistory> list);
}



